﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Warrior_example1 : Tower
{

    string bulletType;
    float speed;
    public override void Attacked()
    {
        base.Attacked();
        Spawner.SpawnBullet(bulletType, bulletPos.position, target.transform.Find("CATRigPelvis").position, speed);
    }
    public override void Onspawn()
    {
        TowerInfo info = StaticData.Instance.TowerInfos[0];
        this.overLap = info.overLap;
        this.bulletType = info.bulletType;
        this.speed = info.bulletSpeed;
        this.attacketPos = "AttackMelee2";
        base.Onspawn();
    }
    public override void OnUnspawn()
    {
        base.OnUnspawn();
    }
    
}
